#region Summary

// 
// Owner : JackieHan 
// 
// Solution : ResearchTest 
// 
// Project : Jackie.WcfSecret.DerivativesCalculator.Test
// 
// File : TestClass.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : Summary
// 
// History : 
//			2011-07-12 11:26:46	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;
using NUnit.Framework;

#endregion

namespace Jackie.WcfSecret.DerivativesCalculator.Test
{
    /// <summary> 
    /// Summary
    /// </summary>
    [TestFixture]
    public class TestClass
    {

        [SetUp]
        public void SetUp()
        {
        }

        [Test]
        public void Test()
        {
            decimal result = 0;
            using (var client = new DerivativesCalculatorClient("BasicHttpBinding_IDerivativesCalculator"))
            {
                client.Open();
                result = client.CalculatorDerivative(new string[] { "MSFT" }, new decimal[] { 3 }, new string[] { });
                client.Close();
            }

            Console.WriteLine(result);
        }

        [TearDown]
        public void TearDown()
        {
        }
    }
}